package com.qf.service.impl;

import com.qf.dao.DeveloperDao;
import com.qf.service.DeveloperService;
import com.qf.pojo.Developer;

import java.util.List;


public class DeveloperServiceImpl implements DeveloperService {
    private DeveloperDao developerDao;

    public void setDeveloperDao(DeveloperDao developerDao) {
        this.developerDao = developerDao;
    }

    @Override
    public List<Developer> findAll() {
        List<Developer> developers = developerDao.findAll();
        return developers;
    }

    @Override
    public void deleteDeceloper(String did) {
        developerDao.deleteDeveloper(did);
    }
}
